<?php

namespace app\api\controller;

use app\api\model\ContactModel;
use app\BaseController;

class Contact extends BaseController
{
    public function index()
    {
        $data = ContactModel::where('id', 1)->withoutField('createtime,updatetime')->find();
        if ($data) {
            $this->success('获取成功', $data);
        } else {
            $this->error('获取失败');
        }
    }
}